home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / goto.c < prev    next >
C/C++ Source or Header  |  1994-01-07  |  4KB  |  164 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_goto ;
  9. extern int    _001Message_goto ;
  10. extern int    Message_goto ;
  11. extern int    Text_goto ;
  12. extern int    DButton_gotoon ;
  13. extern int    goto_on() ;
  14. extern int    DButton_gotooff ;
  15. extern int    goto_off() ;
  16. extern int    _002Message_goto ;
  17. extern int    _003Message_goto ;
  18.  
  19. #define ALIGN    4
  20. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  21.  
  22. /*    MMI_init 用データ    */
  23.  
  24. /*    ヘッダ    */
  25.  
  26. MMIINIT    initDataGOTO = { "MmiInit",   8, 0 } ;
  27.  
  28. /* Dialog_goto */
  29.  
  30. static MMIPACKET d001 = {    &Dialog_goto,
  31.                             NULL,
  32.                             &MJ_DIALOGL40,
  33.                             OFFSET(DIALOGL40),
  34.                             0
  35.                         } ;
  36. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  37.                               95,  61, 333, 192, 0, 7, 0,
  38.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  39.                             NULL,   0,   0
  40.                         } ;
  41.  
  42. /* _001Message_goto */
  43.  
  44. static MMIPACKET d002 = {    &_001Message_goto,
  45.                             &Dialog_goto,
  46.                             &MJ_MSGL40,
  47.                             OFFSET(MSGL40),
  48.                             0
  49.                         } ;
  50. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  51.                              119, 106, 208, 129, 0,15, 0,
  52.                             MS_NONEL40,
  53.                             "ラベル名",
  54.                                2,  16,  16,
  55.                             MS_NONEL40,
  56.                                3,   0
  57.                         } ;
  58.  
  59. /* Message_goto */
  60.  
  61. static MMIPACKET d003 = {    &Message_goto,
  62.                             &Dialog_goto,
  63.                             &MJ_MSGL40,
  64.                             OFFSET(MSGL40),
  65.                             0
  66.                         } ;
  67. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  68.                              102,  66, 326,  89, 0,15,12,
  69.                             MS_NONEL40,
  70.                             "ジャンプ位置指定",
  71.                                2,  16,  16,
  72.                             MS_NONEL40,
  73.                                3,   0
  74.                         } ;
  75.  
  76. /* Text_goto */
  77.  
  78. static MMIPACKET d004 = {    &Text_goto,
  79.                             &Dialog_goto,
  80.                             &MJ_TEXTL40,
  81.                             OFFSET(TEXTL40),
  82.                             0
  83.                         } ;
  84. static TEXTL40    d004d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
  85.                              211, 106, 304, 128, 0, 7, 0,
  86.                             MS_DFRAMEL40 | MS_FRAMEL40,
  87.                             0,
  88.                                0,   0,   0,   0,
  89.                                0,   0,   0,   0,   0,
  90.                                   10,   0,   0,
  91.                                0,   0,   0,   0,
  92.                                0,
  93.                                0,   0,   0,   0,
  94.                                2,  16,  16,   0,   0,
  95.                                0,   0,   0,   0,   0,   0,   0,
  96.                                0,   0,   0,   0,
  97.                                0
  98.                         } ;
  99.  
  100. /* DButton_gotoon */
  101.  
  102. static MMIPACKET d005 = {    &DButton_gotoon,
  103.                             &Dialog_goto,
  104.                             &MJ_DBUTTONL40,
  105.                             OFFSET(DBUTTONL40),
  106.                             0
  107.                         } ;
  108. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  109.                              116, 148, 195, 173, 0, 7, 0,
  110.                             MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  111.                             goto_on,
  112.                             0x0000
  113.                         } ;
  114.  
  115. /* DButton_gotooff */
  116.  
  117. static MMIPACKET d006 = {    &DButton_gotooff,
  118.                             &Dialog_goto,
  119.                             &MJ_DBUTTONL40,
  120.                             OFFSET(DBUTTONL40),
  121.                             0
  122.                         } ;
  123. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  124.                              234, 148, 313, 173, 0, 7, 0,
  125.                             MS_UFRAMEL40 | MS_FRAMEL40,
  126.                             goto_off,
  127.                             0x0000
  128.                         } ;
  129.  
  130. /* _002Message_goto */
  131.  
  132. static MMIPACKET d007 = {    &_002Message_goto,
  133.                             &Dialog_goto,
  134.                             &MJ_MSGL40,
  135.                             OFFSET(MSGL40),
  136.                             0
  137.                         } ;
  138. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  139.                              236, 149, 314, 172, 0,15,15,
  140.                             MS_NONEL40,
  141.                             "取消",
  142.                                2,  16,  16,
  143.                             MS_NONEL40,
  144.                               16,   0
  145.                         } ;
  146.  
  147. /* _003Message_goto */
  148.  
  149. static MMIPACKET d008 = {    &_003Message_goto,
  150.                             &Dialog_goto,
  151.                             &MJ_MSGL40,
  152.                             OFFSET(MSGL40),
  153.                             0
  154.                         } ;
  155. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  156.                              117, 149, 195, 172, 0,15,15,
  157.                             MS_NONEL40,
  158.                             "確定",
  159.                                2,  16,  16,
  160.                             MS_NONEL40,
  161.                               16,   0
  162.                         } ;
  163.  
  164.